package com.pan.hisystem.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author qingyang
 * @since 2022-03-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("h_prescription")
@ApiModel(value="Prescription对象", description="")
public class Prescription implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "处方号")
    private Integer id;


    @ApiModelProperty(value = "总金额")
    @TableField("total_price")
    private Double totalPrice;

    @ApiModelProperty(value = "实收金额")
    private Double revPrice;

    @ApiModelProperty(value = "找回金额")
    private Double backPrice;

    @ApiModelProperty(value = "是否缴费")
    @TableField("pay_status")
    private Boolean payStatus;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "缴费时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private LocalDateTime payTime;

    @ApiModelProperty(value = "是否取药")
    private Boolean takeStatus;

    @ApiModelProperty(value = "是否退药")
    private Boolean backStatus;

    @ApiModelProperty(value = "处方药")
    @TableField(exist = false)
    private List<PrescriptionDrugs> prescriptionDrugs;

    @ApiModelProperty(value = "操作员")
    @TableField(exist = false)
    private User user;

    @ApiModelProperty(value = "科室")
    @TableField(exist = false)
    private Department department;

    @ApiModelProperty(value = "就诊卡")
    @TableField(exist = false)
    private MedicalCard medicalCard;

    @ApiModelProperty(value = "就诊信息表")
    @TableField(exist = false)
    private Outpatients outpatients;


}
